package com.frogs.ucenter.entity;

import java.io.Serializable;
import java.util.Date;

import com.frogs.framework.component.image._enum.ImgStatusEnum;

public class CommonPhoto implements Serializable {
    private static final long serialVersionUID = -4219938849611905092L;

    /**
     * This field corresponds to the database column common_photo.photo_id
     */
    private Integer photoId = 0;

    /**
     * This field corresponds to the database column common_photo.resource_id
     * 搴楅摵ID
     */
    private Integer resourceId = 0;

    /**
     * This field corresponds to the database column common_photo.ref_resource
     * 鍥剧墖鏉ユ簮锛堝晢閾恒�鍟嗗搧绛夛級
     */
    private String refResource;

    /**
     * This field corresponds to the database column common_photo.img_path
     * 鍥剧墖璺緞銆傚師鍥惧湴鍧�
     */
    private String imgPath;

    /**
     * This field corresponds to the database column common_photo.create_date
     * 鍒涘缓鏃ユ湡
     */
    private Date createDate = new Date();

    /**
     * This field corresponds to the database column common_photo.create_user_id
     * 鍒涘缓鑰�
     */
    private Integer createUserId = 0;

    /**
     * This field corresponds to the database column common_photo.create_user_name
     * 鍒涘缓鑰呯敤鎴风櫥褰曞悕銆�
     */
    private String createUserName;
    
    private String hexCode;
    
    private String localPath;
    
	private String serverPath;
    
    private String fileName;
    
    private Integer status = ImgStatusEnum.IMG_DELETE.getId();

    /**
     * This method returns the value of the database column common_photo.photo_id
     *
     * @return the value of common_photo.photo_id
     */
    public Integer getPhotoId() {
        return photoId;
    }

    /**
     * This method sets the value of the database column common_photo.photo_id
     *
     * @param photoId the value for common_photo.photo_id
     */
    public void setPhotoId(Integer photoId) {
        this.photoId = photoId;
    }

    /**
     * This method returns the value of the database column common_photo.resource_id
     *
     * @return the value of common_photo.resource_id
     */
    public Integer getResourceId() {
        return resourceId;
    }

    /**
     * This method sets the value of the database column common_photo.resource_id
     *
     * @param resourceId the value for common_photo.resource_id
     */
    public void setResourceId(Integer resourceId) {
        this.resourceId = resourceId;
    }

    /**
     * This method returns the value of the database column common_photo.ref_resource
     *
     * @return the value of common_photo.ref_resource
     */
    public String getRefResource() {
        return refResource;
    }

    /**
     * This method sets the value of the database column common_photo.ref_resource
     *
     * @param refResource the value for common_photo.ref_resource
     */
    public void setRefResource(String refResource) {
        this.refResource = refResource;
    }

    /**
     * This method returns the value of the database column common_photo.img_path
     *
     * @return the value of common_photo.img_path
     */
    public String getImgPath() {
        return imgPath;
    }

    /**
     * This method sets the value of the database column common_photo.img_path
     *
     * @param imgPath the value for common_photo.img_path
     */
    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    /**
     * This method returns the value of the database column common_photo.create_date
     *
     * @return the value of common_photo.create_date
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * This method sets the value of the database column common_photo.create_date
     *
     * @param createDate the value for common_photo.create_date
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * This method returns the value of the database column common_photo.create_user_id
     *
     * @return the value of common_photo.create_user_id
     */
    public Integer getCreateUserId() {
        return createUserId;
    }

    /**
     * This method sets the value of the database column common_photo.create_user_id
     *
     * @param createUserId the value for common_photo.create_user_id
     */
    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    /**
     * This method returns the value of the database column common_photo.create_user_name
     *
     * @return the value of common_photo.create_user_name
     */
    public String getCreateUserName() {
        return createUserName;
    }

    /**
     * This method sets the value of the database column common_photo.create_user_name
     *
     * @param createUserName the value for common_photo.create_user_name
     */
    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }
    
    public String getHexCode() {
    	return hexCode;
    }
    
    public void setHexCode(String hexCode) {
    	this.hexCode = hexCode;
    }
    
    public String getLocalPath() {
		return localPath;
	}

	public void setLocalPath(String localPath) {
		this.localPath = localPath;
	}

	public String getServerPath() {
		return serverPath;
	}

	public void setServerPath(String serverPath) {
		this.serverPath = serverPath;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}